function set(name, value) {
    localStorage.setItem(name, value);
}
function get(name) {
    return localStorage.getItem(name);
}
function clear(name) {
    if (name) {
        localStorage.removeItem(name);
    } else {
        localStorage.clear();
    }
}

export default {
    get,
    set,
    clear
};
